//CHECKSTYLE:OFF

package com.ractoc.opengamefinder.api.translators;

/**
 * Class to translate between two beans.
 * @author Mark Schrijver
 * @version 1.0
 */
public final class TranslateRegisterMessageToRegisterNetworkMessage implements com.ractoc.opengamefinder.api.translators.Translator {

    /**
     * Constructor.
     */
    public TranslateRegisterMessageToRegisterNetworkMessage() {
    }

    /**
     * Translation method. Translates com.ractoc.opengamefinder.api.messages.RegisterMessage
     * into com.ractoc.opengamefinder.api.messages.network.RegisterNetworkMessage.
     * @param beanInParam bean to translate.
     * @return translated parameter.
     */
    public Object translate(final Object beanInParam) {
        final com.ractoc.opengamefinder.api.messages.RegisterMessage beanIn =
                (com.ractoc.opengamefinder.api.messages.RegisterMessage) beanInParam;
        final com.ractoc.opengamefinder.api.messages.network.RegisterNetworkMessage beanOut =
                new com.ractoc.opengamefinder.api.messages.network.RegisterNetworkMessage();
        beanOut.setName(beanIn.getName());
        beanOut.setPassword(beanIn.getPassword());
        beanOut.setRepeatPassword(beanIn.getRepeatPassword());
        beanOut.setAvatarFile(beanIn.getAvatarFile());
        beanOut.setAvatarFileContent(beanIn.getAvatarFileContent());
        return beanOut;
    }

//====Missing in com.ractoc.opengamefinder.api.messages.network.RegisterNetworkMessage
//setDestinationPlugin has no getter in com.ractoc.opengamefinder.api.messages.RegisterMessage
//setOriginPlugin has no getter in com.ractoc.opengamefinder.api.messages.RegisterMessage
//setErrorCode has no getter in com.ractoc.opengamefinder.api.messages.RegisterMessage
//setReliable has no getter in com.ractoc.opengamefinder.api.messages.RegisterMessage
//

//====Missing in com.ractoc.opengamefinder.api.messages.RegisterMessage
//getClass has no setter in com.ractoc.opengamefinder.api.messages.network.RegisterNetworkMessage
//

}
//CHECKSTYLE:ON

